﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using BlueLotus7.Web;
using BlueLotus7.Contract;

namespace BlueLotus7.Eden.Web
{
    public static class ControllerExetensions
    {
        public static BlueLotus7.Contract.SessionTicket RetrieveSessionTicket(this Controller controller)
        {
            //string controllerName = controller.RouteData.Values["controller"].ToString();
            //StringBuilder text = new StringBuilder();
            //text.Append(@"var ajaxCollection = bluelotus7.ajaxCollection = new Object();");

            //foreach (string action in AjaxCollection.Instance.GetAjaxCollectionByControllerName(controllerName))
            //{
            //    text.Append(string.Format("ajaxCollection['{0}'] = '{1}';", action, controller.Url.Action(action)));
            //}

            return null;
        }
    }
}